var PopupPageLink = Class.create({
   initialize: function(id, link, width, height) {
      this.element = $(id);
      this.link = link;
      this.width = width;
      this.height = height;
      Event.observe(this.element, 'click', this.onclick.bindAsEventListener(this));
   },
   onclick: function() {
      var   name = 'dialogWindow';
      var win = window.open(this.link,name,'width=' + this.width + ',height=' + this.height + ',resizable=yes,scrollbars=yes,menubar=no,screenX=0,screenY=0,left=0,top=0' );
      win.focus();
   }
});

